<script>
import { ref } from 'vue'
  export default function useScrollPosition() {
     const x = ref(0)
     const y = ref(0)
     document.addEventListener("scroll", () => {
      x.value = window.scrollX
      y.value = window.scrollY
     })
     return {
      x,
      y
     }
  }
</script>


